import request from "@/utils/request";

export function deviceList(data) {
  return request({
    url: "/api/device/list",
    method: "post",
    data,
  });
} 

export function deviceInfo(data) {
  return request({
    url: "/api/device/info",
    method: "post",
    data,
  });
} 

export function deviceData(data) {
  return request({
    url: "/api/device/data",
    method: "post",
    data,
  });
} 

export function deviceControl(data) {
  return request({
    url: "/api/device/control",
    method: "post",
    data,
  });
} 

export function deviceControlAll(data) {
  return request({
    url: "/api/device/control/all",
    method: "post",
    data,
  });
} 


export function deviceRenWuList(data) {
  return request({
    url: "/api/device/renwu/list",
    method: "post",
    data,
  });
} 

export function deviceRenWuAdd(data) {
  return request({
    url: "/api/device/renwu/add",
    method: "post",
    data,
  });
} 

export function deviceRenWuDel(data) {
  return request({
    url: "/api/device/renwu/del",
    method: "post",
    data,
  });
} 


export function deviceUpdateName(data) {
  return request({
    url: "/api/device/updatename",
    method: "post",
    data,
  });
} 



export function deviceSwUpdateName(data) {
  return request({
    url: "/api/device/sw/updatename",
    method: "post",
    data,
  });
} 